<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{block name="title"}Administrator - KiteCMS{/block}</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="__STATIC__/font-awesome/css/font-awesome.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="__STATIC__/admin/dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect. -->
  <link rel="stylesheet" href="__STATIC__/admin/dist/css/skins/_all-skins.min.css">
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="__STATIC__/admin/dist/js/html5shiv.min.js"></script>
  <script src="__STATIC__/admin/dist/js/respond.min.js"></script>
  <![endif]-->

  <link rel="stylesheet" href="__STATIC__/select2/select2.min.css">
  <link rel="stylesheet" href="__STATIC__/treetable/css/jquery.treetable.css">
  <link rel="stylesheet" href="__STATIC__/nestable/nestable.css">
  <link rel="stylesheet" href="__STATIC__/layui/css/layui.css">
  <!-- custom css -->
  <style>
    .pagination {margin:0;}
  </style>
  {block name="css"}{/block}

</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue fixed">
<div class="wrapper">

  <!-- Main Header -->
  {include file="public/header" /}

  <!-- Left side column. contains the logo and sidebar -->
  {include file="public/left" /}

  
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <section class="content-header">
      <h1>
        {notempty name="current"}
            {:lang($current)}
        {else /}
            {:lang('Not in the permissions')}
        {/notempty}
      </h1>
      <ol class="breadcrumb">
        <li><i class="fa fa-home"></i> {:lang('Home')}</li>
        {volist name="breadcrumb" id="vo"}
        <li lass="{$vo.active}">{:lang($vo['lang_var'])}</li>
        {/volist}
      </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">

      {block name="content"}{/block}

      <!--------------------------
        | Your Page Content Here |
        -------------------------->

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Main Footer -->
  {include file="public/left" /}

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script src="__STATIC__/jquery/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="__STATIC__/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="__STATIC__/admin/dist/js/adminlte.min.js"></script>
<!-- Sweetalert 2.1.0 -->
<script src="__STATIC__/sweetalert/promise.min.js"></script>
<script src="__STATIC__/sweetalert/sweetalert.min.js"></script>

<script src="__STATIC__/treetable/js/jquery.treetable.js"></script>

<script src="__STATIC__/layui/layui.js"></script>

<script src="__STATIC__/cxselect/jquery.cxselect.js"></script>

<script src="__STATIC__/select2/select2.full.min.js"></script>

<script src="__STATIC__/nestable/jquery.nestable.js"></script>

<!-- custom Js -->
<script src="__STATIC__/admin/dist/js/custom.js"></script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. -->
<script>
function changeSite(id){
    $.ajax({
        type:'post',
        url: "{:url('admin/site/change')}",
        data: {id:id},
        success: function(r){
            if (r.code == 200) {
                swal({
                  position: 'center',
                  type: 'success',
                  title: r.msg,
                  showConfirmButton: false,
                  toast:true,
                  timer: 1000
                }).then(function(){
                    location.reload();
                });
            }
        }
    });
}
</script>
{block name="js"}{/block}
</body>
</html>